package io.renren.modules.repair.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.renren.common.service.impl.CrudServiceImpl;
import io.renren.modules.repair.dao.RepairTaskDao;
import io.renren.modules.repair.dto.RepairTaskDTO;
import io.renren.modules.repair.entity.RepairTaskEntity;
import io.renren.modules.repair.service.RepairTaskService;
import cn.hutool.core.util.StrUtil;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 维修任务表
 *
 * @author dio 167762802@QQ.com
 * @since 1.0.0 2025-04-23
 */
@Service
public class RepairTaskServiceImpl extends CrudServiceImpl<RepairTaskDao, RepairTaskEntity, RepairTaskDTO> implements RepairTaskService {

    @Override
    public QueryWrapper<RepairTaskEntity> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");

        QueryWrapper<RepairTaskEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StrUtil.isNotBlank(id), "id", id);

        return wrapper;
    }


}